<!--
 * @Author: Dorange.Wang
 * @Date: 2021-07-08 15:53:28
 * @LastEditors: your name
 * @LastEditTime: 2021-07-19 15:59:08
 * @Description: jsx里面不能写ccomponent组件 所以需要该组件中转 
 *               使用该组件的弊端、只能有单个solt、不能使用作用域插槽
-->
<template>
  <component
    :is="tag"
    :instance="instance"
    :values="values"
    :value-callback="valueCallback"
  >
    <slot />
  </component>
</template>

<script>
export default {
  props: {
    tag: {
      type: String,
      default: "div",
    },
    instance: {
      type: Object,
      default: () => ({}),
    },
    values: {
      type: Object,
      default: () => ({}),
    },
    valueCallback: {
      type: Function,
      default: () => ({}),
    },
  },
};
</script>

<style></style>
